﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PopupContact.aspx.cs" Inherits="MockPrjTeam4.Pages.Views.PopupContact" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .wrap
        {
            width: 623px;
            border: 1px solid #330099;  
            margin-top: 10px;
            margin-left: 10px;  
        }
        .search
        {
            width: 562px;
            border: 1px solid #330099;
            margin: 10px 20px 20px 20px;
        }
        .searchBtn
        {
            margin-left: 20px;
            margin: 0 20px 20px 20px;
            }
        .gv
        {
            margin: 0 20px 20px 20px;   
            }
        .btn
        {
            margin: 0 20px 20px 20px;
            }
        .txt
        {
            height: 30px;
            width: 150px;
            }
        .style1
        {
            width: 165px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" class="wrap">
    <div class="search">
            <table border="0" style="width: 100%">
            	<tr>
            		<td>Firstname: </td>
                    <td class="style1">
                        <asp:TextBox ID="txtFirstname" runat="Server" CssClass="txt"></asp:TextBox>
                    </td>
                    <td align="right">Surname: </td>
                    <td>
                        <asp:TextBox ID="txtSurname" runat="Server" CssClass="txt"></asp:TextBox>
                    </td>
            	</tr>
            </table>
    </div>
    <div class="searchBtn">
            <asp:Button ID="btnSearch" runat="Server" Text="Search" onclick="btnSearch_Click"/>&nbsp
            <asp:Button ID="btnNone" runat="Server" Text="None" OnClick="btnNone_Click"/>&nbsp
            <asp:Button ID="btnClear" runat="Server" Text="Clear" onclick="btnClear_Click"/>&nbsp
            <asp:CheckBox ID="chkInactive" runat="Server" Text="Include In-active"
            oncheckedchanged="chkInactive_CheckedChanged" AutoPostBack="true"/>
    </div>
    <div class="gv">
        <asp:GridView ID="gvListContact" runat="Server" AutoGenerateColumns="False"
        DataKeyNames="ContactId" BackColor="White" BorderColor="#CC9966" 
            BorderStyle="None" BorderWidth="1px" CellPadding="4"  AllowPaging="true" AllowSorting="true"
            PageSize="5" OnPageIndexChanging="gvListContact_PageIndexChanging">
            <Columns>
                <asp:BoundField DataField="FirstName" HeaderText="First Name"/>
                <asp:BoundField DataField="Surname" HeaderText="Surname"/>
                <asp:BoundField DataField="MobilePhone" HeaderText="MobilePhone"/>
                <asp:BoundField DataField="Email" HeaderText="Email"/>
                <asp:BoundField DataField="JobRole" HeaderText="JobRole"/>
                <asp:BoundField DataField="IsActive" HeaderText="Is Active"/>
                <asp:CommandField HeaderText="Select" ShowHeader="true" ShowSelectButton="true" 
                ControlStyle-Font-Underline="true" ControlStyle-ForeColor="red">
                <ControlStyle Font-Underline="True" ForeColor="Red"></ControlStyle>
                </asp:CommandField>
            </Columns>
            <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
            <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
            <RowStyle BackColor="White" ForeColor="#330099" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
            <SortedAscendingCellStyle BackColor="#FEFCEB" />
            <SortedAscendingHeaderStyle BackColor="#AF0101" />
            <SortedDescendingCellStyle BackColor="#F6F0C0" />
            <SortedDescendingHeaderStyle BackColor="#7E0000" />
        </asp:GridView>
    </div>
    <div class="btn">
        <asp:Button ID="btnSelect" runat="Server" Text="Select" 
            onclick="btnSelect_Click"/>&nbsp
        <asp:Button ID="btnClose" runat="Server" Text="Close" 
            onclick="btnClose_Click" />    
    </div>
    </form>
</body>
</html>
